package com.atguigu.service.impl;

import com.atguigu.dao.UserDao;
import com.atguigu.dao.impl.UserDaoImpl;
import com.atguigu.pojo.SysUser;
import com.atguigu.service.UserService;
import com.atguigu.utils.MD5Utils;

import java.sql.SQLException;

public class UserServiceImpl implements UserService {


    private UserDao userDao = new UserDaoImpl();
    @Override
    public SysUser login(String username, String password) throws SQLException {

        password = MD5Utils.encrypt(password);
        SysUser sysUser = userDao.login(username, password);
        return null;
    }

}
